package com.example.demo11.controller;

import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import org.slf4j.Logger;

@RestController
public class DeomController {
    private Logger logger = LoggerFactory.getLogger(HelloController.class);
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public WebMvcProperties.View hello (Model model){
        model.addAttribute("name", "Dear");
        return new WebMvcProperties.View();
    }
}
